Skip to content

test: cover the join prompt's last-connection prefill - #818

Merged
DeepDiver1975 merged 1 commit into
mainfrom
test/join-prompt-prefill
Nov 1, 2026
Merged

DeepDiver1975 merged 1 commit into
mainfrom
test/join-prompt-prefill

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Adds two MainWindowViewModelTests for the join prompt's prefill from the last connection:

  • Join_prompt_prefills_the_host_and_pin_of_the_last_connection
  • Join_prompt_starts_empty_without_a_last_connection

These were written for #785 after its changed-line mutation gate failed. Rewording a comment inside the join prompt's object initializer put the initializer's {} mutant on a changed line, and nothing in LageBuch.AppLogic.Tests noticed the prompt losing its prefilled Host and PIN. Only the Sync.Hosting and Acceptance suites covered it, and Stryker runs neither. The commit was pushed to the #785 branch after that PR had merged, so it never reached main. This is the same commit (823bd8ee) cherry-picked onto current main.

Tests only, so no changelog entry.

Verification

  • dotnet test tests/LageBuch.AppLogic.Tests --filter FullyQualifiedName~MainWindowViewModelTests: 43 passed.
  • make format-check: clean.

🤖 Generated with Claude Code

The changed-line mutation gate failed on #785: rewording the comment
inside the join prompt's object initializer put the initializer's `{}`
mutant on a changed line, and nothing in LageBuch.AppLogic.Tests noticed
the prompt losing its prefilled Host and PIN. Only the Sync.Hosting and
Acceptance suites covered it, and Stryker runs neither.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
@DeepDiver1975
DeepDiver1975 marked this pull request as ready for review November 1, 2026 23:19
@DeepDiver1975
DeepDiver1975 merged commit 5711000 into main Nov 1, 2026
14 checks passed
@DeepDiver1975
DeepDiver1975 deleted the test/join-prompt-prefill branch November 1, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant